package map.android.baidu.carpool.data.impl;

import android.content.Context;
import com.baidu.lbs.net.http.model.ComNetData;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.response.ModifierUserInfoResponse;
import map.android.baidu.carpool.setting.UserInfoSetting;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangtongyu on 15/4/5.
 */
public class ModifierUserInfoData extends ComNetData<ModifierUserInfoResponse> {
    private String newMobile;
    private String newNickname;
    private String newGender;

    public void setNewMobile(String newMobile) {
        this.newMobile = newMobile;
    }

    public void setNewNickname(String newNickname) {
        this.newNickname = newNickname;
    }

    public ModifierUserInfoData(Context context) {
        super(context);
    }

    public void setNewGender(String newGender) {
        this.newGender = newGender;
    }

    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_MODIFIER_USER_INFO);
    }

    @Override
    protected Map<String, String> getParams() {
        Map<String, String> params = new HashMap<String, String>();
        params.put("bduss", UserInfoSetting.getBduss());
        params.put("newMobile", newMobile);
        params.put("newNickname", newNickname);
        params.put("newGender", newGender);
        return params;
    }
}
